﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;

namespace Datalayer
{
    public abstract class QueryMgr
    {
        private static bool _isNewInstance;
        public static bool IsNewInstance
        {
            get
            {
                return _isNewInstance;
            }
        }
        
        public static IQueryMgr GetDbInstance()
        {
            IQueryMgr query = null;

            ExSingleton<DbExecQuery> db = new ExSingleton<DbExecQuery>();
            query = db.Instance;            
            _isNewInstance = db.IsNewInstance;

            return query;
        }
    }
}
